package com.things8.iot.consumer.feign;

import com.things8.iot.common.result.GlobalResult;
import com.things8.iot.consumer.dto.QueryDeviceDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/5/17 22:17
 */
@FeignClient(name = "baseIot-server",path = "device")
public interface DeviceClient {
    @PostMapping("pageList")
    public GlobalResult pageList(@Valid @RequestBody QueryDeviceDto queryDeviceDto);
}
